package com.mall.product.server.service.impl;

import com.mall.product.common.domain.PmsSkuInfo;
import com.mall.product.server.mapper.PmsSkuInfoMapper;
import com.mall.product.server.service.IPmsSkuInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PmsSkuInfoServiceImpl implements IPmsSkuInfoService {

    @Autowired
    private PmsSkuInfoMapper pmsSkuInfoMapper;

    @Override
    public List<PmsSkuInfo> selectByShopId(Long shopId) {
        return pmsSkuInfoMapper.selectByShopId(shopId);
    }

    @Override
    public List<PmsSkuInfo> selectPmsSkuInfoList(PmsSkuInfo pmsSkuInfo) {
        return pmsSkuInfoMapper.selectPmsSkuInfoList(pmsSkuInfo);
    }

    @Override
    public PmsSkuInfo selectPmsSkuInfoBySkuId(Long id) {
        return pmsSkuInfoMapper.selectPmsSkuInfoBySkuId(id);
    }

}
